
let handleClick = (e)=>{
  console.log(e);
  e.preventDefault();// 阻止默认的行为
}
function App(){
  return (
    <a href="http://www.itheima.com" onClick={handleClick}>黑马官网</a>
  )
}
export default App;